package cn.achao.csr.chat.mapper;

import cn.achao.csr.api.model.entity.ChatUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * (ChatUser)表数据库访问层
 *
 * @author achao
 * @since 2025-02-10 19:37:24
 */
public interface ChatUserMapper extends BaseMapper<ChatUser>{

    /**
     * 更新上线时间和上网状态
     *
     * @param userId
     * @param now
     * @param status
     */
    void updateOptTimeAndStatus(@Param("userId") Long userId,
                                @Param("now") Date now,
                                @Param("status") String status);
}

